<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/employees.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 任务分派 <a href="__ACTION__">【刷新】</a></font></h1>
     </div>
<script type="text/javascript">
$(function(){
//任务下达页面 部门对应员工效果
	$("#change_department").change(function(){
		var id = this.value;
		$.get("__URL__/tasks_ajax",{
			d_id : id
		},function(data){
			$("._remove").remove();
			$("#change_employees").append(data);
	    });
	});
});
</script>
   <div class="module_public_main">
      <table>
      <form action="__URL__/do_add_tasks" method="post">
         <tr>
           <td width="12%" align="right">请选择部门:</td>
           <td>
             <select class="_input" id="change_department">
                <option value="">--请选择部门--</option>
                <?php if(is_array($d_info)): $i = 0; $__LIST__ = $d_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><option value="<?php echo ($v["d_id"]); ?>"><?php echo ($v["d_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
             </select>
           </td>
         </tr>
         <tr>
           <td width="12%" align="right">请选择员工:</td>
           <td>
             <select name="u_id" class="_input" id="change_employees">
                <option value="">--请选择员工--</option>
             </select>
           </td>
         </tr>
         <tr>
           <td width="12%" align="right">任务内容:</td>
           <td>
             <textarea class="_input2" name="t_content"></textarea>
           </td>
         </tr>
         <tr>
           <td width="12%" align="right">&nbsp;</td>
           <td>
            <input type="submit" value="下达任务" class="_button"/>
           </td>
         </tr>
         </form>
      </table>
   </div>
  </div>
</body>
</html>